<template>
  <el-checkbox-group>
    <el-checkbox v-for="(item, index) in unref(options)" :key="index" :value="item.value">{{
      item.label ?? item.value
    }}</el-checkbox>
  </el-checkbox-group>
</template>

<script setup lang="ts">
import { Ref, unref } from "vue";
import { TOptions } from "../type";

defineProps<{
  options: TOptions | Ref<TOptions>;
}>();
</script>
